package medical.domain.role;
import medical.domain.menu.Menu;

import java.util.Set;

/**
 * 
 * @author 演示
 *
 */
public class Role {

	private Integer id;
	/**
	 * 角色编号
	 */
	private String roleid;
	/**
	 * 角色名称
	 */
	private String rolename;
    /**
     * 角色对应权限列表
     */
	private Set<Menu> menus;
	
	public String getRoleid() {
		return roleid;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public void setRoleid(String roleid) {
		this.roleid = roleid;
	}

	public String getRolename() {
		return rolename;
	}

	public void setRolename(String rolename) {
		this.rolename = rolename;
	}

	public Set<Menu> getMenus() {
		return menus;
	}
	public void setMenus(Set<Menu> menus) {
		this.menus = menus;
	}

	public Role(String roleid, String rolename, Set<Menu> menus) {
		this.roleid = roleid;
		this.rolename = rolename;
		this.menus = menus;
	}

	public Role(Integer id, String roleid, String rolename, Set<Menu> menus) {
		this.id = id;
		this.roleid = roleid;
		this.rolename = rolename;
		this.menus = menus;
	}

	public Role() {
	}
}
